cmake_minimum_required (VERSION 2.6)

project (tutorial01)

ADD_EXECUTABLE(tutorial01 main.cpp)

INCLUDE(FindPkgConfig)
pkg_check_modules(opengl gl REQUIRED)
if(opengl_FOUND)
    TARGET_LINK_LIBRARIES(tutorial01 glut ${opengl_LIBRARIES})
endif()
